package com.czz.portal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czz.portal.entity.Order;
import com.czz.portal.query.OrderQuery;
import com.czz.portal.vo.BillVo;
import com.czz.portal.vo.OrderVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName: OrderMapper
 * @Author Czz
 * @Date 2020/2/9
 * @Time 16:29
 **/
public interface OrderMapper extends BaseMapper<Order> {
    List<OrderVo> getOrderVoPageList(Page<OrderVo> pageParam, @Param("query")OrderQuery orderQuery);
    List<BillVo> getBillVoPageList(Page<BillVo> pageParam, String userId);
    BigDecimal getUserTotalPaid(String userId);
}
